package com.le.tester.javaThink.fifth.chapter12_Collections;

import java.util.*;

/**
 * createTime：2021/8/24 16:49
 * description：AddingGroups
 */
public class AddingGroups {
    public static void main(String[] args) {
        Collection<Integer> collection = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5));

        Integer[] moreInts = {6, 7, 8, 9, 10};

        collection.addAll(Arrays.asList(moreInts));

        Collections.addAll(collection, 11, 12, 13, 14, 15);
        Collections.addAll(collection, moreInts);
        List<Integer> integers = Arrays.asList(16, 17, 18, 19);
        integers.set(1, 99);
    }
}
